/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is: CalemEAM MicroLocale Test Suite.
*
* The Initial Developer of the Original Code is CalemEAM Inc.
* Portions created by CalemEAM are Copyright (C) 2008 CalemEAM Inc.
* All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK *****
*/

package test;

import com.calemeam.text.MicroFactory;
import j2meunit.midletui.TestRunner;

/**
 * Test midlet launcher
 * @author cli
 */
public class CalemMicroLocale extends TestRunner {
   private boolean init;
   
   public CalemMicroLocale() {    
   }
   
   /**
    * Initialize Locale library before use. <br>
    * <ul>
    * <li> Resource provider implementing MicroResIf
    * <li> Fixed point provider implementing MicroFpIf
    * </ul>
    */
   private void init() {
      if (this.init) return;
      this.init=true;
      //also set up seed instance for parsing FixedPoint numbers
      MicroFactory.setFactory(new MicroFactoryImpl());
   }
   
	protected void startApp() {
      this.init();
		start(new String[] { "test.LocaleTestSuite" });
	}
}
